
/*
 * GET home page.
 */
var utils = require('util');
var svn = require('svnintegration');
var fs = require('fs');

exports.index = function (req, res) {

    fs.readFile('../index.html', function (err, data) {
        if (err) {
            throw err;
        }
        res.writeHeader(200, { "Content-Type": "text/html" });
        res.write(data);
        res.end;
    });
}

//exports.index = function(req, res){
//  client = new svn();
//  console.log( utils.inspect(client));
//  client.userName = "asit.kachhap@gmail.com";
//  client.password = "tx7XB8QW4Pb2";
//  client.path = "https://ntegcodelancer.googlecode.com/svn/trunk/";  
//  console.log( utils.inspect(client));
//  //res.render('index', { title: client });
//  client.getLog({"size" : 10}, function (err, data){
    
//  //console.log( utils.inspect(data ));
//  console.log( utils.inspect(data, { showHidden: true, depth: null }) );
//      res.render('index', { title: utils.inspect(data, { showHidden: true, depth: null }) });
//      });
  
//};